import request from "@/utils/request.js"


// 查询低于安全库存的耗材们  centerall
export function listInventoryNumLower(query) {
    return request({
        url: '/api/smartScreen/listInventoryNumLower',
        method: "post",
        params: query
    })
}


// 资产异常 2
export function listErrorProperty(query) {
    return request({
        url: '/api/smartScreen/listErrorProperty',
        method: "post",
        params: query
    })
}

// 耗材库存列表 3
export function listItemInventoryAndMonthShipment(query) {
    return request({
        url: '/api/smartScreen/listItemInventoryAndMonthShipment',
        method: "post",
        params: query
    })
}

// 资产库存列表  4
export function listPropertyInventoryAndMonthLendNum(query) {
    return request({
        url: '/api/smartScreen/listPropertyInventoryAndMonthLendNum',
        method: 'post',
        params: query
    })
}

// 耗材与资产的出入库借还记录  5
export function listReceiptShipmentLendReturnHistory(query) {
    console.log(query);
    return request({
        url: '/api/smartScreen/listReceiptShipmentLendReturnHistory',
        method: 'post',
        params: query
    })
}

// 耗材饼图
export function itemPieChar(query) {
    return request({
        url: '/api/smartScreen/itemPieChar',
        method: 'GET',
        params: query
    })
}

// 资产饼图
export function propertyPieChar(query) {
    return request({
        url: '/api/smartScreen/propertyPieChar',
        method: 'GET',
        params: query
    })
}

// 设置仓库的配置
export function setConfigByWarehouse(query) {
    return request({
        url: '/api/smartScreen/setConfigByWarehouse',
        method: 'POST',
        data: query
    })
}

// 获取所有仓库信息
export function listAllWarehouse() {
    return request({
        url: '/api/smartScreen/listAllWarehouse',
        method: 'GET',
    })
}

// 设置值班室当前展示的仓库ID
export function setShowWarehouseId(query) {
    return request({
        url: '/api/smartScreen/setShowWarehouseId',
        method: 'POST',
        params: query
    })
}

// 查询某仓库的配置（根据仓库ID)
export function getConfigByWarehouse(query) {
    return request({
        url: '/api/smartScreen/getConfigByWarehouse',
        method: "POST",
        params: query
    })
}